package com.woniu.common.exception;


import com.woniu.common.entity.ResultCode;
import lombok.Data;

/**
 * 自定义异常
 * @author 武术有栖
 */
@Data
public class LifeException extends RuntimeException {

    private ResultCode resultCode;

    public LifeException(String message) {
        super(message);
    }

    public LifeException(String message, ResultCode resultCode) {
        super(message);
        this.resultCode = resultCode;
    }
}
